remove unused capture of this in one lambda
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 7 Mar 2025 08:23:33 +0000 (09:23 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 7 Mar 2025 09:33:28 +0000 (09:33 +0000)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/accessmanager.cpp

index 40ba4fb93313338f5f6507852d047421b5bc7eea..34239a2fa762fbe5abdb567568e8d4b706f04d79 100644 (file)
@@ -36,7 +36,7 @@ AccessManager::AccessManager(QObject *parent)
     : QNetworkAccessManager(parent)
 {
     setCookieJar(new CookieJar);
-    connect(this, &QNetworkAccessManager::authenticationRequired, this, [this](QNetworkReply *reply, QAuthenticator *authenticator) {
+    connect(this, &QNetworkAccessManager::authenticationRequired, this, [](QNetworkReply *reply, QAuthenticator *authenticator) {
         if (authenticator->user().isEmpty()) {
             qCWarning(lcAccessManager) << "Server requested authentication and we didn't provide a user, aborting ...";
             authenticator->setUser(QUuid::createUuid().toString());